package com.qingcloud.adminbackend.entity.equipment;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 设备解码器节码记录
 * </p>
 *
 * @author wangjinnan
 * @since 2022-08-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_equipment_decode_record")
public class EquipmentDecodeRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 设备编号
     */
    private String equipmentId;

    /**
     * 解码器组件ID
     */
    private Integer componentId;

    /**
     * 网关实例ID
     */
    private Integer gatewayId;

    /**
     * 数据原始内容
     */
    private String dataRaw;

    /**
     * 节码后数据
     */
    private String data;

    /**
     * 解析时间
     */
    private Long decodeTime;

}
